package com.lancoo.znbkxx.teacher.net;


/**
 * Created by Dadong on 2020/4/2 20:27
 *
 * @Describe:
 */
class BkApi {

    private static BkApiService apiService;

    private BkApi(String baseUrl) {
        apiService = BkHttpManager
                .getRetrofit(baseUrl)
                .create(BkApiService.class);
    }

    static BkApiService getApiService(String baseUrl) {
        if (apiService == null) {
            synchronized (BkApi.class) {
                if (apiService == null) {
                    new BkApi(baseUrl);
                }
            }
        }
        return apiService;
    }
}
